class Attrs:
    def __getattr__(self, attrname):
        print('get: %s' % attrname)

    def __setattr__(self, attr, value):
        print('set: %s to %s ' % (str(attr), str(value)))
        self.__dict__[attr] = value
